package fun.werfamily.wf.user.core.domain.exception;


import fun.werfamily.wf.base.exception.BaseCoreException;
import fun.werfamily.wf.base.exception.CommonError;

import java.io.Serializable;

/**
 * @Author: Mr.WenMing Zhang
 * @Date: 2022/07/26 17:40
 * @Description:
 **/

public class UserCoreException extends BaseCoreException implements Serializable {
    private String code;
    private String msg;

    public UserCoreException(CommonError commonError){
        super(commonError);
        this.code = commonError.getCode();
        this.msg = commonError.getFriendlyMsg();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
